import 'package:efood_multivendor/util/dimensions.dart';
import 'package:efood_multivendor/util/styles.dart';
import 'package:flutter/material.dart';
import 'package:get/get.dart';

class ServiceUnavailableScreen extends StatelessWidget {
  ServiceUnavailableScreen({Key? key});

  @override
  Widget build(BuildContext context) {
    return WillPopScope(
      onWillPop: () async {
        return false;
      },
      child: Scaffold(
        backgroundColor: Colors.white,
        body: Center(
          child: Padding(
            padding: EdgeInsets.all(Dimensions.PADDING_SIZE_LARGE),
            child:
                Column(mainAxisAlignment: MainAxisAlignment.center, children: [
              Icon(
                Icons.info,
                color: Theme.of(context).primaryColor,
                size: 60,
              ),
              SizedBox(height: MediaQuery.of(context).size.height * 0.03),
              Text(
                'deadzone_unavailable'.tr,
                style: sfBold.copyWith(
                    fontSize: MediaQuery.of(context).size.height * 0.023,
                    color: Theme.of(context).primaryColor),
                textAlign: TextAlign.center,
              ),
              SizedBox(height: MediaQuery.of(context).size.height * 0.01),
            ]),
          ),
        ),
      ),
    );
  }
}
